QT +=  core gui-private gui

TEMPLATE = lib
# 目标文件存放目录
DESTDIR = lib
# 中间文件文件存放目录
OBJECTS_DIR = object
# moc文件存放目录
MOC_DIR = moc

# 生成静态库
CONFIG += c++11 staticlib

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# 以库的形式编译
DEFINES += QT_BUILD_XLSX_LIB

# 不同编译模式下进行名字区分
CONFIG(debug,debug|release){
    TARGET = qtxlsxd
}
else {
    TARGET = qtxlsx
}

SOURCES += \
    qtxlsx.cpp \
    xlsxabstractooxmlfile.cpp \
    xlsxabstractsheet.cpp \
    xlsxcell.cpp \
    xlsxcellformula.cpp \
    xlsxcellrange.cpp \
    xlsxcellreference.cpp \
    xlsxchart.cpp \
    xlsxchartsheet.cpp \
    xlsxcolor.cpp \
    xlsxconditionalformatting.cpp \
    xlsxcontenttypes.cpp \
    xlsxdatavalidation.cpp \
    xlsxdocpropsapp.cpp \
    xlsxdocpropscore.cpp \
    xlsxdocument.cpp \
    xlsxdrawing.cpp \
    xlsxdrawinganchor.cpp \
    xlsxformat.cpp \
    xlsxmediafile.cpp \
    xlsxnumformatparser.cpp \
    xlsxrelationships.cpp \
    xlsxrichstring.cpp \
    xlsxsharedstrings.cpp \
    xlsxsimpleooxmlfile.cpp \
    xlsxstyles.cpp \
    xlsxtheme.cpp \
    xlsxutility.cpp \
    xlsxworkbook.cpp \
    xlsxworksheet.cpp \
    xlsxzipreader.cpp \
    xlsxzipwriter.cpp

HEADERS += \
    qtxlsx.h \
    xlsxabstractooxmlfile.h \
    xlsxabstractooxmlfile_p.h \
    xlsxabstractsheet.h \
    xlsxabstractsheet_p.h \
    xlsxcell.h \
    xlsxcell_p.h \
    xlsxcellformula.h \
    xlsxcellformula_p.h \
    xlsxcellrange.h \
    xlsxcellreference.h \
    xlsxchart.h \
    xlsxchart_p.h \
    xlsxchartsheet.h \
    xlsxchartsheet_p.h \
    xlsxcolor_p.h \
    xlsxconditionalformatting.h \
    xlsxconditionalformatting_p.h \
    xlsxcontenttypes_p.h \
    xlsxdatavalidation.h \
    xlsxdatavalidation_p.h \
    xlsxdocpropsapp_p.h \
    xlsxdocpropscore_p.h \
    xlsxdocument.h \
    xlsxdocument_p.h \
    xlsxdrawing_p.h \
    xlsxdrawinganchor_p.h \
    xlsxformat.h \
    xlsxformat_p.h \
    xlsxglobal.h \
    xlsxmediafile_p.h \
    xlsxnumformatparser_p.h \
    xlsxrelationships_p.h \
    xlsxrichstring.h \
    xlsxrichstring_p.h \
    xlsxsharedstrings_p.h \
    xlsxsimpleooxmlfile_p.h \
    xlsxstyles_p.h \
    xlsxtheme_p.h \
    xlsxutility_p.h \
    xlsxworkbook.h \
    xlsxworkbook_p.h \
    xlsxworksheet.h \
    xlsxworksheet_p.h \
    xlsxzipreader_p.h \
    xlsxzipwriter_p.h

# Default rules for deployment.
unix {
    target.path = $$[QT_INSTALL_PLUGINS]/generic
}
!isEmpty(target.path): INSTALLS += target
